﻿using Avalonia.Controls;
using Markdown.Avalonia.Utils;

namespace MarkdownRow.Edit;

internal class ButtonBlockHandler : IContainerBlockHandler
{
    public Border ProvideControl(string assetPathRoot, string blockName, string lines)
    {
        return new Border()
        {
            Child = new Button() { Content = lines }
        };
    }
}

internal class TextBoxBlockHandler : IContainerBlockHandler
{
    public Border ProvideControl(string assetPathRoot, string blockName, string lines)
    {
        return new Border()
        {
            Child = new TextBox() { Text = lines }
        };
    }
}